package com.hl.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品规格对象 goods_spec
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
public class GoodsSpec extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录id，主键自增 */
    private Long id;

    /** 关联的商品类型id */
    @Excel(name = "关联的商品类型id")
    private Long goodsTypeId;

    /** 关联的商品规格类型id */
    @Excel(name = "关联的商品规格类型id")
    private Long specTypesId;

    /** 是否必选（默认否） */
    @Excel(name = "是否必选", readConverterExp = "默=认否")
    private Integer isRequired;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setGoodsTypeId(Long goodsTypeId) 
    {
        this.goodsTypeId = goodsTypeId;
    }

    public Long getGoodsTypeId() 
    {
        return goodsTypeId;
    }

    public void setSpecTypesId(Long specTypesId) 
    {
        this.specTypesId = specTypesId;
    }

    public Long getSpecTypesId() 
    {
        return specTypesId;
    }

    public void setIsRequired(Integer isRequired) 
    {
        this.isRequired = isRequired;
    }

    public Integer getIsRequired() 
    {
        return isRequired;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsTypeId", getGoodsTypeId())
            .append("specTypesId", getSpecTypesId())
            .append("isRequired", getIsRequired())
            .toString();
    }
}
